package com.wd.user;

import com.wd.base.thread.ThreadPoolUtils;
import com.wd.common.userservice.IUserCommonService;
import com.wd.common.userservice.bean.UserBean;
import com.wd.common.userservice.listener.UserInfoListener;

/**
 * NA<BR>
 *
 * @author w4425
 * @version [V2.0.0, 2021/3/18]
 * @since V2.0.0
 */
public class UserCommonServiceImpl implements IUserCommonService {
    @Override
    public UserBean queryUserInfo(String key, UserInfoListener listener) {
        UserBean bean = new UserBean();
        ThreadPoolUtils.postToMainDelay(new Runnable() {
            @Override
            public void run() {
                bean.id = key;
                bean.name = "zs";
                bean.age = "16";
                listener.UserInfo(bean);
            }
        }, 1000);
        return bean;
    }
}
